<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- /fasttmp/mkdist-qt-4.3.5-1211793125/qtopia-core-opensource-src-4.3.5/src/gui/image/qimage.cpp -->
<head>
  <title>Qt 4.3: Obsolete Members for QImage</title>
  <link href="classic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="top" width="32"><a href="http://www.trolltech.com/products/qt"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></a></td>
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a>&nbsp;&middot; <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="modules.html"><font color="#004faf">Modules</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
<td align="right" valign="top" width="230"><a href="http://www.trolltech.com"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></a></td></tr></table><h1 align="center">Obsolete Members for QImage</h1>
<p><b>The following class members are obsolete.</b> They are provided to keep old source code working. We strongly advise against using them in new code.</p>
<p><ul><li><a href="qimage.html">QImage class reference</a></li></ul></p>
<h3>Public Functions</h3>
<ul>
<li><div class="fn"/>int <b><a href="qimage-obsolete.html#serialNumber">serialNumber</a></b> () const&nbsp;&nbsp;<tt> (obsolete)</tt></li>
<li><div class="fn"/>void <b><a href="qimage-obsolete.html#setText-2">setText</a></b> ( const char * <i>key</i>, const char * <i>language</i>, const QString &amp; <i>text</i> )&nbsp;&nbsp;<tt> (obsolete)</tt></li>
<li><div class="fn"/>QString <b><a href="qimage-obsolete.html#text-2">text</a></b> ( const char * <i>key</i>, const char * <i>language</i> = 0 ) const&nbsp;&nbsp;<tt> (obsolete)</tt></li>
<li><div class="fn"/>QString <b><a href="qimage-obsolete.html#text-3">text</a></b> ( const QImageTextKeyLang &amp; <i>keywordAndLanguage</i> ) const&nbsp;&nbsp;<tt> (obsolete)</tt></li>
<li><div class="fn"/>QStringList <b><a href="qimage-obsolete.html#textLanguages">textLanguages</a></b> () const&nbsp;&nbsp;<tt> (obsolete)</tt></li>
<li><div class="fn"/>QList&lt;QImageTextKeyLang&gt; <b><a href="qimage-obsolete.html#textList">textList</a></b> () const&nbsp;&nbsp;<tt> (obsolete)</tt></li>
</ul>
<hr />
<h2>Member Function Documentation</h2>
<h3 class="fn"><a name="serialNumber"></a>int QImage::serialNumber () const</h3>
<p>Returns a number that identifies the contents of this <a href="qimage.html">QImage</a> object. Distinct <a href="qimage.html">QImage</a> objects can only have the same serial number if they refer to the same contents (but they don't have to).</p>
<p>Use <a href="qimage.html#cacheKey">cacheKey</a>() instead.</p>
<p><b>Warning:</b> The serial number doesn't necessarily change when the image is altered. This means that it may be dangerous to use it as a cache key.</p>
<p>See also <a href="qimage.html#operator-eq-eq">operator==</a>().</p>
<h3 class="fn"><a name="setText-2"></a>void QImage::setText ( const char * <i>key</i>, const char * <i>language</i>, const <a href="qstring.html">QString</a> &amp; <i>text</i> )</h3>
<p>This is an overloaded member function, provided for convenience.</p>
<p>Sets the image text to the given <i>text</i> and associate it with the given <i>key</i>. The text is recorded in the specified <i>language</i>, or in a default language if <i>language</i> is 0.</p>
<p>Use <a href="qimage.html#setText">setText</a>() instead.</p>
<p>The language the text is recorded in is no longer relevant since the text is always set using <a href="qstring.html">QString</a> and UTF-8 representation.</p>
<h3 class="fn"><a name="text-2"></a><a href="qstring.html">QString</a> QImage::text ( const char * <i>key</i>, const char * <i>language</i> = 0 ) const</h3>
<p>This is an overloaded member function, provided for convenience.</p>
<p>Returns the text recorded for the given <i>key</i> in the given <i>language</i>, or in a default language if <i>language</i> is 0.</p>
<p>Use <a href="qimage.html#text">text</a>() instead.</p>
<p>The language the text is recorded in is no longer relevant since the text is always set using <a href="qstring.html">QString</a> and UTF-8 representation.</p>
<h3 class="fn"><a name="text-3"></a><a href="qstring.html">QString</a> QImage::text ( const QImageTextKeyLang &amp; <i>keywordAndLanguage</i> ) const</h3>
<p>This is an overloaded member function, provided for convenience.</p>
<p>Returns the text recorded for the given <i>keywordAndLanguage</i>.</p>
<p>Use <a href="qimage.html#text">text</a>() instead.</p>
<p>The language the text is recorded in is no longer relevant since the text is always set using <a href="qstring.html">QString</a> and UTF-8 representation.</p>
<h3 class="fn"><a name="textLanguages"></a><a href="qstringlist.html">QStringList</a> QImage::textLanguages () const</h3>
<p>Returns the language identifiers for which some texts are recorded. Note that if you want to iterate over the list, you should iterate over a copy.</p>
<p>The language the text is recorded in is no longer relevant since the text is always set using <a href="qstring.html">QString</a> and UTF-8 representation.</p>
<h3 class="fn"><a name="textList"></a><a href="qlist.html">QList</a>&lt;QImageTextKeyLang&gt; QImage::textList () const</h3>
<p>Returns a list of QImageTextKeyLang objects that enumerate all the texts key/language pairs set for this image.</p>
<p>Use <a href="qimage.html#textKeys">textKeys</a>() instead.</p>
<p>The language the text is recorded in is no longer relevant since the text is always set using <a href="qstring.html">QString</a> and UTF-8 representation.</p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="30%">Copyright &copy; 2008 <a href="trolltech.html">Trolltech</a></td>
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
<td width="30%" align="right"><div align="right">Qt 4.3.5</div></td>
</tr></table></div></address></body>
</html>
